.class Lcom/instagram/android/model/b/b;
.super Ljava/lang/Object;
.source "LocalUserObjectMapper.java"


# static fields
.field private static a:Lcom/fasterxml/jackson/databind/ObjectMapper;


# direct methods
.method static a()Lcom/fasterxml/jackson/databind/ObjectMapper;
    .locals 3

    .prologue
    .line 14
    sget-object v0, Lcom/instagram/android/model/b/b;->a:Lcom/fasterxml/jackson/databind/ObjectMapper;

    if-nez v0, :cond_0

    .line 16
    new-instance v0, Lcom/fasterxml/jackson/databind/module/SimpleModule;

    const-string v1, "UserModule"

    invoke-static {}, Lcom/fasterxml/jackson/a/w;->a()Lcom/fasterxml/jackson/a/w;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/fasterxml/jackson/databind/module/SimpleModule;-><init>(Ljava/lang/String;Lcom/fasterxml/jackson/a/w;)V

    .line 17
    const-class v1, Lcom/instagram/android/model/b/e;

    new-instance v2, Lcom/instagram/android/model/b/d;

    invoke-direct {v2}, Lcom/instagram/android/model/b/d;-><init>()V

    invoke-virtual {v0, v1, v2}, Lcom/fasterxml/jackson/databind/module/SimpleModule;->addSerializer(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;

    .line 18
    const-class v1, Lcom/instagram/android/model/b/e;

    new-instance v2, Lcom/instagram/android/model/b/a;

    invoke-direct {v2}, Lcom/instagram/android/model/b/a;-><init>()V

    invoke-virtual {v0, v1, v2}, Lcom/fasterxml/jackson/databind/module/SimpleModule;->addDeserializer(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;

    .line 19
    new-instance v1, Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-direct {v1}, Lcom/fasterxml/jackson/databind/ObjectMapper;-><init>()V

    invoke-virtual {v1, v0}, Lcom/fasterxml/jackson/databind/ObjectMapper;->registerModule(Lcom/fasterxml/jackson/databind/Module;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    move-result-object v0

    sput-object v0, Lcom/instagram/android/model/b/b;->a:Lcom/fasterxml/jackson/databind/ObjectMapper;

    .line 21
    :cond_0
    sget-object v0, Lcom/instagram/android/model/b/b;->a:Lcom/fasterxml/jackson/databind/ObjectMapper;

    return-object v0
.end method
